# 大驼峰命名
class Washer:
    height = 800 # 类属性, 类的所有实例共享同一份数据
    def wash(self,round): # self参数是类中的实例方法必须具备的
        print("self",self) # self指向当前实例对象,当前调用该方法的实力对象
        print("洗衣中...round / s:", round)
Washer.width = 600 # 动态添加属性

print(Washer.height)
print(Washer.width)

# 实例化对象
washer1 = Washer()
print(washer1) # <__main__.Washer object at 0x000002D6A8BE9550>
washer1.wash(10) # self <__main__.Washer object at 0x000002D6A8BE9550>

washer2 = Washer()
print(washer2)
washer2.price = 1000 # 动态添加实例属性
washer2.wash(20)
print(washer2.price)

# self 代表对象本身, 当对象调用方法时, self指向当前对象
